Skip to content

ci: scope release env and OIDC permissions to main#294

Merged
bdraco merged 1 commit into
mainfrom
ci/scope-release-permissions
Jun 22, 2026
Merged

ci: scope release env and OIDC permissions to main#294
bdraco merged 1 commit into
mainfrom
ci/scope-release-permissions

Conversation

@bdraco

@bdraco bdraco commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

The release job held id-token: write, contents: write, and the release environment on every trigger including pull requests, even though it only published on main; this splits it into two jobs so PR runs no longer carry release credentials.

Details

release-dry-run runs on PRs and non-main pushes with only contents: read, no environment and no OIDC, just the python-semantic-release dry run; release runs only on main and keeps the release environment plus write and OIDC permissions scoped to that job, so they never apply to untrusted PR code.

Test plan

  • workflow YAML parses clean
  • dry-run job runs on this PR, publish job stays skipped

@codspeed-hq

codspeed-hq Bot commented Jun 22, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 7.62%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 34 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
test_calculate_distance_meters_far 17.5 µs 18.9 µs -7.62%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ci/scope-release-permissions (dafc816) with main (64ad8b1)

Open in CodSpeed

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (64ad8b1) to head (dafc816).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #294   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          266       266           
  Branches        43        43           
=========================================
  Hits           266       266           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bdraco bdraco marked this pull request as ready for review June 22, 2026 00:49
@bdraco bdraco merged commit 13c0dab into main Jun 22, 2026
48 of 50 checks passed
@bdraco bdraco deleted the ci/scope-release-permissions branch June 22, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant